home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(data){
- this.questions = new Array();
- var j = 0;
- while(j < 200)
- {
- if(this["question" + j + "_text"] == undefined)
- {
- return undefined;
- }
- this.questions[j] = {};
- this.questions[j].text = this["question" + j + "_text"];
- this.questions[j].answer = Number(this["question" + j + "_answer"]);
- this.questions[j].choices = new Array();
- var k = 0;
- while(k < this.num_choices_per_question)
- {
- this.questions[j].choices[k] = this["question" + j + "_choice" + k];
- k++;
- }
- j++;
- }
- }
-